import _Fetch from '@/server/Fetch'
import { API_GET_USER_INFO } from '@/api/user/getUserInfo'
import { API_POST_BY_AUTO_LOGIN } from '@/api/login/loginAuto'

export async function get_user_info() {
  return await _Fetch(API_GET_USER_INFO)
}

// 根据code自动登录
export async function login_by_auto(code, references) {
  return await _Fetch(API_POST_BY_AUTO_LOGIN, { code, references })
}
